<?php

namespace App\Remote\OceanEngine;

use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Http\Request;
use Illuminate\Validation\ValidationException;
use Symfony\Component\HttpFoundation\Request as RequestAlias;

class Clue extends Remote
{
    /**
     * @param string $clueId
     * @param string $advertiserId
     * @return mixed
     * @throws GuzzleException
     * @throws ValidationException
     */
    public static function callback(string $clueId, string $advertiserId)
    {
        return self::customRequestV3(
            "/open_api/2/tools/clue/callback/",
            RequestAlias::METHOD_POST,
            [
                "clue_id"            => $clueId,
                "advertiser_ids"     => [$advertiserId],
                "source"             => 1,
                "clue_convert_state" => 194
            ]
        );
    }
}
